package jhc.cn.moviegallery;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.app.Fragment;

/**
 * Created by luyanfei on 16-12-8.
 */

public class MoviePageActivity extends SingleFragmentActivity {

    public static Intent newIntent(Context context, Uri moviePageUri) {
        Intent intent = new Intent(context, MoviePageActivity.class);
        intent.setData(moviePageUri);
        return intent;
    }

    @Override
    protected Fragment createFragment() {
        return MoviePageFragment.newInstance(getIntent().getData());
    }
}
